package com.sunspring.zdcall.service;

import com.sunspring.zdcall.dto.DeptDto;
import com.sunspring.zdcall.entity.ZdBaseDepartment;

import java.util.List;

/**
 * @Author WuLei
 * @Date 2018/11/27  16:54
 */
public interface DeptService  {

    /**
     * 条件查询科室
     * @param department ZdBaseDepartment
     * @return List<ZdBaseDepartment>
     */
    List<ZdBaseDepartment> getSelective(ZdBaseDepartment department);


    /**
     * 新增单个科室信息
     * @param departmentInfo departmentInfo
     */
    void addDept(ZdBaseDepartment departmentInfo);

    /**
     * 根据deptId删除科室
     * @param deptId deptId
     */
    void deleteDept(String deptId);

    /**
     * 根据科室id修改科室信息
     * @param departmentInfo departmentInfo
     */
    void update(ZdBaseDepartment departmentInfo);

    /**
     * 根据科室id查询
     * @param deptId 科室id
     * @return ZdBaseDepartment
     */
    ZdBaseDepartment selectById(String deptId);

    /**
     * 启用/停用科室
     * @param deptId 科室id
     */
    void switchDept(String deptId);

}
